package com.ikas.ai.server.module.analyse.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ikas.ai.server.module.analyse.model.dto.ExceptionQueryDTO;
import com.ikas.ai.server.module.analyse.model.dto.TrendQueryDTO;
import com.ikas.ai.server.module.analyse.model.vo.ExceptionAnalysisVo;
import com.ikas.ai.server.module.instance.model.WorkInstanceStepDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * 异常趋势分析
 *
 * @author tang.xuandong
 * @version 1.0.0
 * @date 2023/2/1 16:03
 */
@Mapper
public interface ExceptionAnalysisDAO extends BaseMapper<WorkInstanceStepDetail> {

    /**
     * 获取异常分析数据
     *
     * @param req req
     * @return vo
     */
    List<ExceptionAnalysisVo> getExceptionAnalysis(ExceptionQueryDTO req);

    /**
     * 获取样本数据
     *
     * @param req REQ
     * @return cost time
     */
    List<Double> getSampleData(TrendQueryDTO req);

}
